-- ----------------------------------------------------------
--
-- Author: czf
-- date: 2018-12-14
-- description: 命令模式-请求类(库存)
--
-- ----------------------------------------------------------

Stock = Stock or BaseClass()

function Stock:__init()
	self.name = "ABC"
	self.quantity = 10
end

function Stock:Buy()
	print("Stock [ Name: "..self.name..", Quantity: " .. self.quantity .." ] bought")
end

function Stock:Sell()
	print("Stock [ Name: "..self.name..", Quantity: " .. self.quantity .." ] sold")
end